package com.cloud.dong.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author DJ
 * @description
 * @date 2022/2/16 9:56 下午
 **/
@Configuration
public class ApplicationContextConfig {

    /**
     * 注入 RestTemplate
     *
     * @param
     * @return org.springframework.web.client.RestTemplate
     * @author DJ
     * @date 9:56 下午 2022/2/16
     **/
    @Bean
    @LoadBalanced
    public RestTemplate getRestTemplate() {
        return new RestTemplate();
    }
}
